package top.chmin.project.cloud.sys.index.info;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RestController;
import top.chmin.project.cloud.common.Page;
import java.util.List;



/**
 * chmin
 * 2024-01-26 13:55:57
 * cloud-code
 */
@RestController
public class IndexInfoController implements
/*###########auto#start###########*/
        IndexInfoSelectIndexCodeOptionRest,
        /*###########auto##end############*/
        /* append $controllerSelectOptionRestAppender$ */
        IndexInfoSaveRest,
        IndexInfoSelectRest,
        IndexInfoUpdateRest,
        IndexInfoDeleteRest,
        IndexInfoPageRest {

    @Resource
    private IndexInfoService indexInfoService;

    @Override
    public int save(IndexInfoSaveRest.P p) {
        return indexInfoService.save(p);
    }

    @Override
    public IndexInfoSelectRest.R select(IndexInfoSelectRest.P p) {
        return indexInfoService.select(p);
    }

    @Override
    public int update(IndexInfoUpdateRest.P p) {
        return indexInfoService.update(p);
    }

    @Override
    public int delete(IndexInfoDeleteRest.P p) {
        return indexInfoService.delete(p);
    }

    @Override
    public Page<IndexInfoPageRest.R> page(IndexInfoPageRest.P p) {
        return indexInfoService.page(p);
    }

    /*###########auto#start###########*/
    public List<IndexInfoSelectIndexCodeOptionRest.R> selectIndexCodeOption(IndexInfoSelectIndexCodeOptionRest.P p) {
        return indexInfoService.selectIndexCodeOption(p);
    }

    /*###########auto##end############*/
    /* append $controllerSelectOptionMethodAppender$ */
}
